package com.ljcalc.business.components.fetchers;

import java.net.URL;

import com.ljcalc.business.components.requests.HTTPUserRequest;

import junit.framework.TestCase;

public class NumberPercentageFetcherTest extends TestCase {
	public void setUp() throws Exception{
		
	}
	
	public void tearDown() throws Exception{
		
	}
	
	public void testloadContent() throws Exception{
		HTTPUserRequest ur  = new HTTPUserRequest("http://svenskaspel.se/common/infopopup/statistik.aspx?product=8");
		NumberPercentageFetcher f = new NumberPercentageFetcher(ur.getURLStr());
		assertEquals(35, f.loadContent());
		System.out.println(f.getList());
	}
}
